package com.example.graduation.entity;

import java.math.BigDecimal;
import java.io.Serializable;
import java.util.List;

import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 *
 * </p>
 *
 * @author xyc
 * @since 2022-02-11
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "Order对象", description = "")
public class Torder implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "订单id（在这里利用雪花算法生成）")
    private Long orderId;

    @ApiModelProperty(value = "用户id")
    private Integer userId;

    @ApiModelProperty(value = "订单id")
    private Integer shopId;

    @ApiModelProperty(value = "订单状态（0待付款 1待发货 2配送中 3已完成 4评价 5退款/售后）")
    private Integer status;

    @ApiModelProperty(value = "购买时的价格")
    private Double price;

    @ApiModelProperty(value = "数量")
    private Integer shuliang;

    @ApiModelProperty(value = "订单创建时间")
    private Long createTime;

    @ApiModelProperty(value = "完成时间")
    private Long completeTime;

    @ApiModelProperty(value = "付款总数")
    private Double total;

    @ApiModelProperty(value = "优惠")
    private Double reduce;

    @ApiModelProperty(value = "配送费")
    private Double freight;

    @ApiModelProperty(value = "0自取 1老板配送")
    private Integer leixin;

    @TableField(exist = false)
    private List<Goods> list;

    @TableField(exist = false)
    private User user;

    @TableField(exist = false)
    private Shop shop;


}
